package com.luoluo.pojo.builder;

import com.luoluo.pojo.UserTable;
import javafx.util.Builder;

public class UserTableBuilder implements Builder {
    private UserTable userTable=new UserTable();

    public UserTableBuilder setId(Integer id) {
        this.userTable.setId(id);
        return this;
    }

    public UserTableBuilder setName(String name) {
        this.userTable.setName(name);
        return this;
    }

    public UserTableBuilder setIp(String ip) {
        this.userTable.setIp(ip);
        return this;
    }

    public UserTableBuilder setEffective(Integer effective) {
        this.userTable.setEffective(effective);
        return this;
    }

    public UserTableBuilder setAccount(String account) {
        this.userTable.setAccount(account);
        return this;
    }

    public UserTableBuilder setPassword(String password) {
        this.userTable.setPassword(password);
        return this;
    }

    public UserTableBuilder setEmail(String email) {
        this.userTable.setEmail(email);
        return this;
    }

    public UserTableBuilder setPhone(String phone) {
        this.userTable.setPhone(phone);
        return this;
    }

    @Override
    public UserTable build() {
        return this.userTable;
    }
}